package org.jfonia.musicxml.model;

import org.w3c.dom.Node;

public class Attributes extends Element implements MeasureElement
{
	private int  divisions = 0;
	private Clef clef = null;
	private Key	 key = null;
	private Time time = null;

	public Attributes(Node node)
	{
		super(node);
	}
	
	public Attributes(int divisions, Clef clef, Key key, Time time)
	{
		super(null);
		this.divisions = divisions;
		this.clef = clef;
		this.key = key;
		this.time = time;
	}
	
	public static Attributes getDefault()
	{
		return new Attributes(1, Clef.getDefault(), Key.getDefault(), Time.getDefault());
	}
	
	public void setClef(Clef clef)
	{
		this.clef = clef;
	}

	public Clef getClef()
	{
		return clef;
	}

	public void setKey(Key key)
	{
		this.key = key;
	}

	public Key getKey()
	{
		return key;
	}

	public void setTime(Time time)
	{
		this.time = time;
	}

	public Time getTime()
	{
		return time;
	}

	public int getDivisions()
	{
		return divisions;
	}

	public void setDivisions(int divisions)
	{
		this.divisions = divisions;
	}
}
